//
//  MyCell.m
//  UI21_UICollectionView
//
//  Created by dllo on 15/6/17.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "MyCell.h"

@implementation MyCell



- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.myImageView = [[UIImageView alloc]initWithFrame:CGRectZero];
        self.myLabel = [[UILabel alloc]initWithFrame:CGRectZero];
        [self.contentView addSubview:self.myLabel];
        [self.contentView addSubview:self.myImageView];
        self.myLabel.textColor=[UIColor colorWithWhite:0.391 alpha:1.000];
        [_myImageView release];
    
    }
    return self;
}



-(void)layoutSubviews
{   // 左视图的位置
    self.myLabel.frame=CGRectMake(20, self.hightimage-30, 200, 30);
    self.myImageView.frame=CGRectMake(0, 0, (self.contentView.frame.size.width), self.hightimage-30);
    
}















@end
